POV-Ray : Newsgroups : povray.binaries.images : Can't get photons to bring about desired refraction : Can't get photons to bring about desired refraction Server Time
11 Aug 2024 03:24:58 EDT (-0400)
  Can't get photons to bring about desired refraction  
From: CFM
Date: 6 May 2004 14:20:00
Message: <web.409a8149d855a4115c168f750@news.povray.org>
Here's the programming language used to render the image I'm posting. Notice
there are no rainbow-style effects refracting onto the ground. How do I get
proper refraction?

#include "colors.inc"
#include "textures.inc"
#include "finish.inc"
#include "glass.inc"
global_settings {
  max_trace_level 12
  photons {
    count 100000
    spacing .01
    autostop 0
    jitter .2
  }
}
camera {
  location <0,7.5,-10>
  look_at 0
}
light_source {<1000,1000,-1000>rgb<1,1,1>
  photons {refraction on
           reflection on}
}
background {rgb<.7,.7,1>}
plane {<0,1,0>,-1
  pigment {rgb<.5,.5,.5>
  }
  finish {ambient 1}
  photons {collect off}
}
sphere {<5,1,0>,2
  texture {T_Old_Glass}
  finish {ambient 0
          diffuse .5
          reflection .25
} interior {ior 1.5
            dispersion 1
            caustics .25
            fade_distance .25
            fade_power .25}
  photons {
    target 1
    refraction on
    reflection off
}
cylinder {<-3,0,0>,<-3,4,0>,1
  texture {T_Old_Glass}
  finish {ambient 0
          diffuse .5
          reflection .25}
  interior {ior 1.5
            dispersion 1.1
            caustics .25
            fade_distance .25
            fade_power .25
  photons {target 1
           refraction on
           reflection off
  }
}


Post a reply to this message


Attachments:
Download 'prism problem.jpg' (10 KB)

Preview of image 'prism problem.jpg'
prism problem.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.